-- more_partner
-- created by panyl
-- 神龙许愿：我要更多的伙伴

return {
    doWish = function(info)
        local args = DragonWishM.query(info["id"], "args");
        local unrealId = args["unreal"];
        local times = DragonWishM.getOptionTimesById(info["id"]);
        local maxTimes = DragonWishM.query(info["id"], "times");

        -- 有次数限制
        if  maxTimes ~= NUMBER_INFINITY and
            maxTimes <= times and
            type(args["unreal2"]) == "number" then
            unrealId = args["unreal2"];
        end

        -- 开始夹层迷宫
        UnrealDungeonM.startDungeon(unrealId);
    end,

    canFetchWish = function(id)
        return true;
    end,
};
